<?php

/**
 *
 * @author Richard Ejem <r.ejem9 gmail.com>
 */
class wdbSchema extends Nette\Application\UI\Control
{
    /**@var \WDB\WebApi\Schema */
    protected $schema;
    public function __construct(WDB\WebUI\Schema $schema)
    {
        $this->schema = $schema;
    }
    public function render()
    {
        $this->template->setFile(__DIR__ . '/wdbSchema.latte');
        $this->template->content = $this->schema->generateHTML();
        $this->template->render();
    }
}
